package com.song.filter;

import javax.servlet.*;
import javax.servlet.http.HttpFilter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.xml.crypto.dsig.spec.XPathType;
import java.io.IOException;

/**
 * @ClassName : MyFilter
 * @Author : 司猫子
 * @Date: 2021/3/1 13:31
 */
public class MyFilter implements Filter {

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("执行了filter操作");
        filterChain.doFilter(servletRequest, servletResponse);
    }
}
